package com.health.db.service.user.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.health.db.dao.user.ITrainingEnterDao;
import com.health.db.model.TrainingEnter;
import com.health.db.model.TrainingEnterExample;
import com.health.db.service.user.ITrainingEnterService;

@Component("trainningEnterService")
public class TrainningEnterService implements ITrainingEnterService{
	
	@Autowired
	private ITrainingEnterDao trainingEnterDao;

	@Override
	public int insert(TrainingEnter record) {
		// TODO Auto-generated method stub
		return trainingEnterDao.insert(record);
	}

	@Override
	public List<TrainingEnter> selectByExample(TrainingEnterExample example) {
		// TODO Auto-generated method stub
		return trainingEnterDao.selectByExample(example);
	}

	@Override
	public TrainingEnter selectByPrimaryKey(Long id) {
		// TODO Auto-generated method stub
		return trainingEnterDao.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(TrainingEnter record) {
		// TODO Auto-generated method stub
		return trainingEnterDao.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(TrainingEnter record) {
		// TODO Auto-generated method stub
		return trainingEnterDao.updateByPrimaryKey(record);
	}

	public ITrainingEnterDao getTrainingEnterDao() {
		return trainingEnterDao;
	}

	public void setTrainingEnterDao(ITrainingEnterDao trainingEnterDao) {
		this.trainingEnterDao = trainingEnterDao;
	}

	@Override
	public long countByExample(TrainingEnterExample example) {
		// TODO Auto-generated method stub
		return trainingEnterDao.countByExample(example);
	}


	
}
